<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/vue.js"></script>
</head>
<body>
<div id="app">
    <div v-for="add in addrs">{{add}}</div>
    <hr>
    <div v-for="(addr,index) in addrs">{{index + 1}}:{{addr}}</div>
</div>
<script>

    new Vue({
        el:"#app",
        data:{
            addrs:['北京','上海','深圳','武汉']
        },
        methods:{

        }
    })
</script>
</body>
</html>